package paw.eltabique.domain;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author drakart
 */
public class Usuario {


  public static enum Role {INVITADO,USUARIO,ADMINISTRADOR};
  private String login;
  private Role roleUser;

  public Usuario(String userName, Role role) {
    this.login=userName;
    this.roleUser=role;
  }

  public Role getRole() {
    return roleUser;
  }

  public void setRole(Role r) {
    this.roleUser = r;
  }

  public String getLogin() {
    return login;
  }

  public void setLogin(String login) {
    this.login = login;
  }

  @Override
  public String toString(){
    return "Login: "+login+" ROL: "+roleUser;
  }
}
